package com.android.kmlmrg.model;

import com.android.kmlmrg.utils.MethodeUtils;

public class ApiSession {

	public static final String WSCALLERID = "wsCallerId";

	public static final String TIMESTAMP = "timestamp";

	public static final String HASH = "hash";

	public static final String IDENTIFIANT = "identifiant";

	public static final String PASSWORD = "password";
	
	private String hash = null;
	
	private String wsCallerId = null;
	
	private String identifiant = null;
	
	private String password = null;
	
	private String wsCallerSecret = null;
	
	private String timesTamp = null;
	
	
	private String sessionToken;
	
	private String status;
	
	public ApiSession (String pLogin, String pPassword, String pWsCallerId, String pWsCallerSecret) {
		identifiant = pLogin;
		password =pPassword;
		wsCallerId =pWsCallerId;
		wsCallerSecret =pWsCallerSecret;
		timesTamp = Long.valueOf(System.currentTimeMillis()).toString();
		hash =  MethodeUtils.getHash(wsCallerSecret, timesTamp);
		
	}

	public String getSessionToken() {
		return sessionToken;
	}


	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getHash() {
		return hash;
	}

	public String getWsCallerId() {
		return wsCallerId;
	}



	public String getIdentifiant() {
		return identifiant;
	}



	public String getPassword() {
		return password;
	}


	public String getWsCallerSecret() {
		return wsCallerSecret;
	}



	public String getTimesTamp() {
		return timesTamp;
	}

	public void setSessionToken(String pSessionToken) {
		sessionToken =pSessionToken;
		
	}




	
	
}
